package cn.tedu.store.search.webapi.repository;

import cn.tedu.store.commons.pojo.search.entity.EsProduct;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface SpuRepository extends ElasticsearchRepository<EsProduct,Long> {
    /*自定义查询(默认排序)*/
    Page<EsProduct> queryEsProductsByNameMatchesOrTypeNumberMatchesOrTitleMatchesOrDescriptionOrKeywordsMatches(
        String name, String typeNumber, String title, String description, String keywords, Pageable pageable
    );
}
